package com.study.design.composite.company;

import lombok.extern.slf4j.Slf4j;


/**
 * @version V1.0
 * @title: HRDepartment
 * @description: ${DESCRIPTION}
 * @author: wanghuilong
 * @date: 2019-07-29 18:00
 * @copyright: http://fingo.com.my/
 */
@Slf4j
public class HRDepartment extends Company {
    public HRDepartment(String name) {
        super(name);
        log.info("addLogStart HRDepartment InputParam: name : {} ", name);
    }

    @Override
    public void Add(Company c) {
        log.info("addLogStart Add InputParam: c : {} ", c);
    }

    @Override
    public void Remove(Company c) {
        log.info("addLogStart Remove InputParam: c : {} ", c);
    }

    @Override
    public void Display(Integer depth) {
        log.info("addLogStart Display InputParam: depth : {} ", depth);
        System.out.println("-" + depth + "," + name);
    }

    @Override
    public void LineOfDuyty() {
        log.info("addLogStart LineOfDuyty InputParam: ");
        System.out.printf("{0} 员工招聘培训管理", name);
    }
}
